package com.thermofisher.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author py
 * @since 2020-01-13
 */
public class Estimate extends Model<Estimate>
{

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("est_quantity")
    private String estQuantity;

    @TableField("est_amount")
    private String estAmount;

    @TableField("est_winrate")
    private String estWinrate;

    @TableField("department_no")
    private String departmentNo;

    @TableField("project_no")
    private String projectNo;

    @TableField("department_name")
    private String departmentName;

    @TableField("est_booking")
    private String estBooking;

    @TableField("act_booking")
    private String actBooking;

    @TableField("act_revenue")
    private String actRevenue;

    @TableField("act_quantity")
    private String actQuantity;

    @TableField("act_winrate")
    private String actWinrate;

    @TableField("act_amount")
    private String actAmount;

    @TableField(exist=false)
    private List<User> userList;

    @Override
    protected Serializable pkVal()
    {
        return this.id;
    }

    public Integer getId()
    {
        return id;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public String getEstQuantity()
    {
        return estQuantity;
    }

    public void setEstQuantity(String estQuantity)
    {
        this.estQuantity = estQuantity;
    }

    public String getEstAmount()
    {
        return estAmount;
    }

    public void setEstAmount(String estAmount)
    {
        this.estAmount = estAmount;
    }

    public String getEstWinrate()
    {
        return estWinrate;
    }

    public void setEstWinrate(String estWinrate)
    {
        this.estWinrate = estWinrate;
    }

    public String getDepartmentNo()
    {
        return departmentNo;
    }

    public void setDepartmentNo(String departmentNo)
    {
        this.departmentNo = departmentNo;
    }

    public String getProjectNo()
    {
        return projectNo;
    }

    public void setProjectNo(String projectNo)
    {
        this.projectNo = projectNo;
    }

    public String getDepartmentName()
    {
        return departmentName;
    }

    public void setDepartmentName(String departmentName)
    {
        this.departmentName = departmentName;
    }

    public String getEstBooking()
    {
        return estBooking;
    }

    public void setEstBooking(String estBooking)
    {
        this.estBooking = estBooking;
    }

    public String getActBooking()
    {
        return actBooking;
    }

    public void setActBooking(String actBooking)
    {
        this.actBooking = actBooking;
    }

    public String getActRevenue()
    {
        return actRevenue;
    }

    public void setActRevenue(String actRevenue)
    {
        this.actRevenue = actRevenue;
    }

    public String getActQuantity()
    {
        return actQuantity;
    }

    public void setActQuantity(String actQuantity)
    {
        this.actQuantity = actQuantity;
    }

    public String getActWinrate()
    {
        return actWinrate;
    }

    public void setActWinrate(String actWinrate)
    {
        this.actWinrate = actWinrate;
    }

    public String getActAmount()
    {
        return actAmount;
    }

    public void setActAmount(String actAmount)
    {
        this.actAmount = actAmount;
    }

    public List<User> getUserList()
    {
        return userList;
    }

    public void setUserList(List<User> userList)
    {
        this.userList = userList;
    }

    @Override
    public String toString()
    {
        return "Estimate{" +
                "id=" + id +
                ", estQuantity='" + estQuantity + '\'' +
                ", estAmount='" + estAmount + '\'' +
                ", estWinrate='" + estWinrate + '\'' +
                ", departmentNo='" + departmentNo + '\'' +
                ", projectNo='" + projectNo + '\'' +
                ", departmentName='" + departmentName + '\'' +
                ", estBooking='" + estBooking + '\'' +
                ", actBooking='" + actBooking + '\'' +
                ", actRevenue='" + actRevenue + '\'' +
                ", actQuantity='" + actQuantity + '\'' +
                ", actWinrate='" + actWinrate + '\'' +
                ", actAmount='" + actAmount + '\'' +
                ", userList=" + userList +
                '}';
    }
}
